package com.le.api;

import com.le.api.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 购物车相关操作
 */

// http://localhost:20001/bbs-board/topic/findTopicById?topicid=" + topicid;
@FeignClient(value = "bbs-board", path = "topic", configuration = FeignConfig.class)
public interface BoardTopicApi {

    // http://bbs-board/topic/findTopicById?topicid=X
    @RequestMapping(value = "findTopicById", method = RequestMethod.GET)
    public Map<String, Object> findTopicById(@RequestParam int topicid);

}
